package com.sqsf.mapper;
import com.sqsf.javabean.SysLog;
import com.sqsf.service.SysLogService;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Insert;
import java.util.List;
public interface SysLogMapper {
    @Select("select * from syslog")
    List<SysLog> selectAll();

    List<SysLog> selectByUsernameAndUrl(@Param("username") String username, @Param("url") String url);

    @Insert("insert into syslog (visitTime,username,ip,url,executionTime,classname,methodName,args) values(#{visitTime},#{username},#{ip},#{url},#{executionTime},#{className},#{methodName},#{args})")
    public int insert(SysLog sysLog);
}
